
<template>
    <div>
        <router-link to="/SpareQualityTestPlan" style="float: right">
            <el-button type="danger" icon="close" size="mini" class="bolder outsideBtnBS"></el-button>
        </router-link>
        <label class="default-label" v-text="isExamOrSee?nowLangue.examSpareQualityPlan:nowLangue.seeSpareQualityPlan"><!--审核备件质检计划--></label>
        <el-button type="danger" size="mini" v-if="isExamOrSee" :disabled="examDisabled" class="bolder outsideBtnBS" v-text="nowLangue.exam"><!--审核--></el-button>
        <el-form :inline="true" :model="formInline" class="demo-form-inline">
            <!--质量计划编码-->
            <el-form-item :label="nowLangue.qualityPlanCode" class="selectMB10">
                <el-input size="mini" v-model="formInline.materialName" class="disabledClick" disabled></el-input>
            </el-form-item>
            <!--创建日期-->
            <el-form-item :label="nowLangue.createDate" class="selectMB10" >
                <el-input size="mini" v-model="formInline.materialName" class="disabledClick" disabled></el-input>
            </el-form-item>
            <!--创建人-->
            <el-form-item :label="nowLangue.creater" class="selectMB10">
                <el-input size="mini" v-model="formInline.materialName" class="disabledClick" disabled></el-input>
            </el-form-item>
            <!--备件小类-->
            <el-form-item :label="nowLangue.spareClass" class="selectMB10">
                <el-input size="mini" v-model="formInline.materialName" class="disabledClick" disabled></el-input>
            </el-form-item>
            <!--备件编码-->
            <el-form-item :label="nowLangue.spareCode" class="selectMB10">
                <el-input v-model="formInline.code" class="disabledClick" disabled></el-input>
            </el-form-item>
            <!--备件名称-->
            <el-form-item :label="nowLangue.spareName" class="selectMB10">
                <el-input size="mini" v-model="formInline.materialName" class="disabledClick" disabled></el-input>
            </el-form-item>
            <!--供应商名称-->
            <el-form-item :label="nowLangue.supplierName" class="selectMB10">
                <el-input size="mini" v-model="formInline.materialName" class="disabledClick" disabled></el-input>
            </el-form-item>
            <!--备件来源-->
            <el-form-item :label="nowLangue.spareSource" class="selectMB10">
                <el-input size="mini" v-model="formInline.materialName" class="disabledClick" disabled></el-input>
            </el-form-item>
            <!--检验计划-->
            <el-form-item :label="nowLangue.testPlan" class="selectMB10">
                <el-input size="mini" v-model="formInline.materialName" class="disabledClick" disabled></el-input>
            </el-form-item>
            <!--电性能检验方式-->
            <el-form-item :label="nowLangue.electricTestWay" class="selectMB10">
                <el-input size="mini" v-model="formInline.materialName" class="disabledClick" disabled></el-input>
            </el-form-item>
            <p>
                <!--电性能抽检标准-->
                <el-form-item :label="nowLangue.electricSamplingTest" class="selectMB10">
                    <el-select size="mini" clearable v-model="formInline.status" :placeholder="nowLangue.pleaseSelect">
                        <el-option v-for="(status,index) in statusList" :key="index" :label="status.label" :value="status.value"></el-option>
                    </el-select>
                </el-form-item>
                <!--电性能检验水平-->
                <el-form-item :label="nowLangue.electricTestLevel" class="selectMB10">
                    <el-select size="mini" clearable v-model="formInline.status" :placeholder="nowLangue.pleaseSelect">
                        <el-option v-for="(status,index) in statusList" :key="index" :label="status.label" :value="status.value"></el-option>
                    </el-select>
                </el-form-item>
                <!--电性能AQL-->
                <el-form-item :label="nowLangue.electricAql" class="selectMB10">
                    <el-select size="mini" clearable v-model="formInline.status" :placeholder="nowLangue.pleaseSelect">
                        <el-option v-for="(status,index) in statusList" :key="index" :label="status.label" :value="status.value"></el-option>
                    </el-select>
                </el-form-item>
            </p>
            <!--外观检验方式-->
            <el-form-item :label="nowLangue.appearanceTestWay" class="selectMB10">
                <el-input size="mini" v-model="formInline.materialName" class="disabledClick" disabled></el-input>
            </el-form-item>
            <p>
                <!--外观抽检标准-->
                <el-form-item :label="nowLangue.appearanceSamplingTest" class="selectMB10">
                    <el-select size="mini" clearable v-model="formInline.status" :placeholder="nowLangue.pleaseSelect">
                        <el-option v-for="(status,index) in statusList" :key="index" :label="status.label" :value="status.value"></el-option>
                    </el-select>
                </el-form-item>
                <!--外观检验水平-->
                <el-form-item :label="nowLangue.appearanceTestLevel" class="selectMB10">
                    <el-select size="mini" clearable v-model="formInline.status" :placeholder="nowLangue.pleaseSelect">
                        <el-option v-for="(status,index) in statusList" :key="index" :label="status.label" :value="status.value"></el-option>
                    </el-select>
                </el-form-item>
                <!--外观AQL-->
                <el-form-item :label="nowLangue.appearanceAql" class="selectMB10">
                    <el-select size="mini" clearable v-model="formInline.status" :placeholder="nowLangue.pleaseSelect">
                        <el-option v-for="(status,index) in statusList" :key="index" :label="status.label" :value="status.value"></el-option>
                    </el-select>
                </el-form-item>
            </p>
            <!--说明-->
            <p>
                <el-form-item :label="nowLangue.describe" class="selectMB10 default-flex">
                    <el-input type="textarea" resize="none" v-model="formInline.materialName" class="disabledClick" disabled></el-input>
                </el-form-item>
            </p>
        </el-form>
   </div>
</template>
<script>
    export default {
        data() {
            return {
                nowLangue:{},
                languageScoped:{
                    zh:{
                        "examSpareQualityPlan":"审核备件质检计划",
                        "seeSpareQualityPlan":"查看备件质检计划",
                        "exam":"审核",
                        "testPlan":"检验计划",
                        "pleaseSelect":"请选择",
                        "pleaseImport":"请输入",
                        "qualityPlanCode":"质量计划编码",
                        "creater":"创建人",
                        "createDate":"创建日期",
                        "supplierName":"供应商名称",
                        "qualityPlanStatus":"质量计划状态",
                        "spareClass":"备件小类",
                        "spareCode":"备件编码",
                        "spareName":"备件名称",
                        "electricTestWay":"电性能检验方式",
                        "appearanceTestWay":"外观检验方式",
                        "status":"状态",
                        "productLine":"产品线",
                        "planClass":"计划大类",
                        "spareSource":"备件来源",
                        "electricSamplingTest":"电性能抽检标准",
                        "electricTestLevel":"电性能检验水平",
                        "electricAql":"电性能AQL",
                        "appearanceSamplingTest":"外观抽检标准",
                        "appearanceTestLevel":"外观检验水平",
                        "appearanceAql":"外观AQL",
                        "examer":"审核人",
                        "examStatus":"审核状态",
                        "examRemarks":"审核备注",
                        "createTime":"创建时间",
                        "describe":"说明"
                    },
                    en:{
                        "examSpareQualityPlan":"examSpareQualityPlan",
                        "seeSpareQualityPlan":"seeSpareQualityPlan",
                        "exam":"exam",
                        "testPlan":"testPlan",
                        "pleaseSelect":"pleaseSelect",
                        "pleaseImport":"pleaseImport",
                        "qualityPlanCode":"qualityPlanCode",
                        "creater":"creater",
                        "createDate":"createDate",
                        "supplierName":"supplierName",
                        "qualityPlanStatus":"qualityPlanStatus",
                        "spareClass":"spareClass",
                        "spareCode":"spareCode",
                        "spareName":"spareName",
                        "electricTestWay":"electricTestWay",
                        "appearanceTestWay":"appearanceTestWay",
                        "status":"status",
                        "productLine":"productLine",
                        "planClass":"planClass",
                        "spareSource":"spareSource",
                        "electricSamplingTest":"electricSamplingTest",
                        "electricTestLevel":"electricTestLevel",
                        "electricAql":"electricAql",
                        "appearanceSamplingTest":"appearanceSamplingTest",
                        "appearanceTestLevel":"appearanceTestLevel",
                        "appearanceAql":"appearanceAql",
                        "examer":"examer",
                        "examStatus":"examStatus",
                        "examRemarks":"examRemarks",
                        "createTime":"createTime",
                        "describe":"describe"
                    }
                },
                isExamOrSee:false,//判断审核true还是查看false
                // 查询表单
                formInline:{

                },
                dialogFormVisible:false,//选择备件弹窗
                dialogSupplierVisible:false,//选择供应商弹窗
                //按钮禁用
                examDisabled:false,
            };
        },
        created:function(){
            this.languageType=="zh"?this.nowLangue=this.languageScoped.zh:this.nowLangue=this.languageScoped.en;
        },
        computed:{
            languageType(){
                return this.$store.state.languageType;
            }
        },
        watch:{
            languageType(){
                this.languageType=="zh"?this.nowLangue=this.languageScoped.zh:this.nowLangue=this.languageScoped.en;
            }
        },
        //进入页面立即运行此方法
        mounted: function () {
            var _this = this;
            _this.$store.commit('currentActive', 'SpareQuallityTestPlan');
            this.isExamOrSee=this.$route.query.isExamOrSee;//判断是审核还是查看
        },
        methods:{

        }
    }
</script>



